home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / Misc / GMS / GMSDev / Includes / system / tasks.i < prev    next >
Encoding:
Text File  |  1997-11-14  |  1.9 KB  |  63 lines

  1.     IFND SYSTEM_TASKS_I
  2. SYSTEM_TASKS_I  SET  1
  3.  
  4. **
  5. **  $VER: tasks.i (November 1997)
  6. **
  7. **  (C) Copyright 1996-1997 DreamWorld Productions.
  8. **      All Rights Reserved.
  9. **
  10.  
  11.     IFND    DPKERNEL_I
  12.     include    'dpkernel/dpkernel.i'
  13.     ENDC
  14.  
  15. *****************************************************************************
  16. * This task structure is lodged into tc_UserData (see exec/tasks.i), so
  17. * you may not change that field when using GMS.  A new UserData field exists
  18. * here which you can use if necessary.
  19.  
  20. TASKVERSION = 1
  21. TAGS_TASK   = ((ID_SPCTAGS<<16)|ID_TASK)
  22.  
  23.     STRUCTURE    DPKTask,HEAD_SIZEOF
  24.     APTR    GT_UserData        ;Pointer to user data, no restrictions.
  25.     APTR    GT_TaskName        ;Name of the task if specified. (READ ONLY)
  26.  
  27.     *** Private Fields ***
  28.  
  29.     APTR    GT_MasterPrefs     ;Master preferences.
  30.     APTR    GT_ScreenPrefs     ;Screen preferences.
  31.     APTR    GT_SoundPrefs      ;Sound preferences.
  32.     APTR    GT_BlitterPrefs    ;Blitter preferences.
  33.  
  34.     APTR    GT_ResourceChain   ;The resource chain, private.
  35.     LONG    GT_ReqStatus       ;Used internally.
  36.     LONG    GT_BlitKey         ;Used to store resource key.
  37.     LONG    GT_AudioKey        ;Used to store resource key.
  38.     LONG    GT_ExecNode        ;Task's exec node.
  39.     APTR    GT_DestructStack   ;Pointer to self destruct exit stack.
  40.     APTR    GT_DestructCode    ;Pointer to self destruct exit code.
  41.     BYTE    GT_AlertState      ;On/Off.
  42.     BYTE    GT_Switched        ;Set if task is in Switch().
  43.     WORD    GT_DebugStep       ;Debug tree stepping position.
  44.     BYTE    GT_AwakeSig        ;Signal for waking this task.
  45.     BYTE    GT_Pad             ;Reserved.
  46.  
  47.     LONG    GT_TotalData       ;Total data memory in use.
  48.     LONG    GT_TotalVideo      ;Total video memory in use.
  49.     LONG    GT_TotalSound      ;Total sound memory in use.
  50.     LONG    GT_TotalBlit       ;Total blitter memory in use.
  51.  
  52.     *** Public Fields ***
  53.  
  54.     LONG    GT_emp1
  55.     APTR    GT_Preferences     ;Preferences directory.
  56.     LABEL    GT_SIZEOF
  57.  
  58. CS_OCS =  0
  59. CS_ECS =  1
  60. CS_AGA =  2
  61.  
  62.   ENDC    ;SYSTEM_TASKS_I
  63.